package com.ftg.learn.DemoController;


import com.ftg.learn.DemoService.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Autowired
    DemoService demoService;
    @GetMapping("/xhello")
    public String hello(){
        return demoService.hello();
    }
}
